package demo2;

class Demo {
    public static void main(String[] args) {
        Cat cat = new Cat("黑色", 4);
        cat.eat();
        cat.catchMouse();
        Dog dog = new Dog("黄色", 4);
        dog.eat();
        dog.lookHome();
    }
}
